//
//  UIView+LLZHUD.h
//  test2
//
//  Created by 柳麟喆 on 2018/2/27.
//  Copyright © 2018年 lzLiu. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIView (LLZHUD)

@property(nonatomic, strong ,readonly)UIAlertController *alertController;

// 加载框
-(void)showHUD:(NSString *)message;      // 没有菊花

-(void)showLoadHUD:(NSString *)message;  // 有菊花

-(void)hideHUD;

// 提示框
-(void)showAutoDismissHUD:(NSString *)message;

-(void)showAutoDismissHUD:(NSString *)message delay:(NSTimeInterval)delay;

// 弹出框
-(void)showError:(NSError *)error;

-(void)showAlertView:(NSString *)message alertControllerStyle:(UIAlertControllerStyle)style ok:(void(^)(UIAlertAction * action))ok cancel:(void(^)(UIAlertAction * action))cancel;

- (UIViewController *)viewController;

@end
